|
|
|
|
|
|
|
As Table 18.1 shows, most RDOs have a parallel in the Microsoft Jet DAO collections. If you have not read through the chapter covering the Microsoft Jet Database objects (Day 9, ''Visual Basic and the Microsoft Jet Engine"), you might want to review that material before you continue with this chapter. |
|
|
|
|
|
|
|
|
When you complete this chapter, you'll be able to create data-bound entry forms using the RDCs and to build Visual Basic programs that manipulate RDBMS data using the RDOs. |
|
|
|
|
|
|
|
|
The Basics of Remote Data Access |
|
|
|
|
|
|
|
|
Before getting into the details of the RDC and RDO programming tools, it is important to review a few basic principles of remote data access. When you use the Microsoft Jet DAOs or the standard data control, you usually do not need to deal with some of the issues covered here. The three concepts covered here are cursor drivers, dataset types, and lock types. Manipulating the parameters of these three properties affects the type of dataset you are working with and the types of operations you can perform on that data. By default, all remote connections to data are non-updatable (read-only) datasets. You can change this behavior by manipulating the three properties covered here. |
|
|
|
|
|
|
|
|
You use the cursor drivers to define the way in which you can move within a set of data. When you connect to data using the standard data control or the Microsoft Jet DAOs, you can, by default, move forward and backward in the dataset and move to any record in the collection. You can use any of the Move and Find methods (MoveFirst, MoveLast, MoveNext, MovePrevious, FindFirst, FindLast, FindNext, and FindPrevious), for example. |
|
|
|
|
|
|
|
|
In order to have this movement capability, the database engine must be able to keep track of all the records in the collection and their place in the dataset. This process of keeping track of the location of the data pointer in the dataset is called cursor management. You can use two primary locations to keep track of the cursor location: the client workstation or the database server. Under the RDC and RDOs, the local workstation version of cursor management is handled by the ODBC driver. The server-side cursor management is handled by the database server that holds the data. |
|
|
|
|
|
|
|
|
Under RDC and RDOs, there are two other possible settings for cursor management: Client Batch and None. You can use the Client Batch option with advanced data servers that allow multiple data requests to be sent simultaneously over the same connection. In this case, you can batch up multiple SQL statements in a single string and send them to the server at one time. The server manages the requests and reports results back to you as each SQL statement is completed. |
|
|
|
|
|